﻿using System;
using System.Linq;
using System.Text;
using Microsoft.Identity.Client;
using SqlSugar;

namespace SenFangKaoHe_MVC.Models.Entity
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("kaohe")]
    public partial class kaohe
    {
           public kaohe(){


           }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity=true)]
           public int Id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string? MingCheng {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string? TiKuid {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? RiQi {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? TianKong {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public double? TianKongFen {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? DanXuan {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public double? DanXuanFen {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? DuoXuan {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public double? DuoXuanFen {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? PanDuan {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public double? PanDuanFen {get;set;}

        [SugarColumn(IsIgnore = true)]    //CodeFist数据库时不映射字段
        [Navigate(NavigateType.OneToMany, nameof(shijuan.kaoheid))]   //配置一对多关系，定义一个防火单位有多个设备
        public List<shijuan>? shijuans { get; set; }

    }
}
